# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python-libfwnt-python
_pkgname=libfwnt
pkgver=20240415
pkgrel=3
pkgdesc='Library for Windows NT data types.'
url='https://pypi.org/project/libfwnt-python/#files'
arch=('x86_64' 'aarch64')
license=('LGPL3')
depends=('python')
makedepends=('python-setuptools')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha512sums=('f3417461ba0155bb72a86e710832b5138db2ac8de3a3c7cf23adc912b2a9dbfea0b436c132f6474e1342789442ffa4f698fadef8d08e2b37c3ccfd6e118e0c57')

build() {
  cd "$_pkgname-$pkgver"

  python setup.py build
}

package_python-libfwnt-python() {
  cd "$_pkgname-$pkgver"

  python setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
}

